two rectangles overlapping interview question

join shbcf.ru